package com.onurokan.someone4me.user.dao;

import java.sql.SQLException;

import org.hibernate.exception.ConstraintViolationException;

import com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException;
import com.onurokan.someone4me.user.domain.User;

public interface UserDao {

	void addUser(User user) throws ConstraintViolationException;

	void saveUser(User user);

	User loadUserById(Long id);

	User loadUserByUsername(String username);

}
